package com.rockcent.mall.lib.repository;

import com.rockcent.common.common.PageResult;
import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.SysMessage;
import com.rockcent.mall.lib.domain.SysMessageUser;
import com.rockcent.mall.lib.dto.SysMessageDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

/**
 * Created by zhangjh on 2017/5/27.
 */

public interface SysMessageRepositoryCustom {
    /**
     * 查询个人消息
     *
     * @param sysMessage
     * @param pageResult
     * @return
     */
    PageResult<SysMessageDto> querySysMessage(SysMessageDto sysMessage, PageResult pageResult);


    SysMessageDto findOneByIdAndIsDeleteAndUserId(Long id, Whether no, Long userId);

}
